<ion-view title="任务信息">
    <ion-nav-buttons side="right">
        <div class="buttons buttons-right">
                <span class="right-buttons">
                    <button class="button button-clear"
                            ng-if="task.isComplete == 2"
                            ng-click="doComplete()">
                        完成
                    </button>
                </span>
        </div>
    </ion-nav-buttons>
    <ion-content class="crm-content">
        <ul class="list">
            <div class="item item-divider text-center">
                <h2>{{task.userTask.name}}</h2>
                <p>{{task.createTime | date:'yyyy-MM-dd' }}</p>
            </div>
            <li class="item" style="min-height: 200px;">
                <h2 style="white-space: initial">
                    {{task.userTask.remark}}
                </h2>
            </li>
            <div class="item item-divider text-left" ng-if="task.isComplete == 1">
                <p>完成时间：{{task.updateTime | date:'yyyy-MM-dd HH:mm' }}</p>
            </div>
        </ul>
        <!--
        <div class="padding">
            <button class="button button-block button-energized-crm" ng-if="task.isComplete == 2" ng-click="doComplete()">完成</button>
        </div>
        -->
    </ion-content>
</ion-view>

<style>
    .item-divider {
       background-color: #EEEEEE;
    }
    .item-divider:first-child{
        border-top: none;
    }
    .item-divider:last-child{
        border-bottom:none;
    }
</style>